import request from '@/utils/request'

// 查询工序工价系数列表
export function listCoeffic(query) {
  return request({
    url: '/craft/coeffic/list',
    method: 'get',
    params: query
  })
}

// 查询工序工价系数详细
export function getCoeffic(id) {
  return request({
    url: '/craft/coeffic/' + id,
    method: 'get'
  })
}

// 新增工序工价系数
export function addCoeffic(data) {
  return request({
    url: '/craft/coeffic',
    method: 'post',
    data: data
  })
}

// 修改工序工价系数
export function updateCoeffic(data) {
  return request({
    url: '/craft/coeffic',
    method: 'put',
    data: data
  })
}

// 删除工序工价系数
export function delCoeffic(id) {
  return request({
    url: '/craft/coeffic/' + id,
    method: 'delete'
  })
}

//查询初始数据信息
//如：工序类别 categoryList
//    标准工序单价 standardProcessPirce
//    工序排序字段信息  processOrderBy
export function initCoefficData(){
  return request({url:'craft/coeffic/initCoefficData',method:'get'});
}